package com.suning.sawp.po.contend;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 〈一句话功能简述〉<br>
 * 〈功能详细描述〉
 *
 * @author 12061748
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Entity(name = "COMMONT_INFO")
public class CommBean implements Serializable {

    /**
     */
    private static final long serialVersionUID = -1296471649123197739L;
    /**
     * 评论id
     */
    private Long commId;
    /**
     * 话题id
     */
    private String topicId;
    /**
     * 评论人类型（1：oa 2:微信 3：匿名）
     */
    private String criticType;
    /**
     * 匿名头像
     */
    private String nmHeadPic;
    /**
     * 匿名姓名
     */
    private String nmName;
    /**
     * 评论人id
     */
    private Long personId;
    /**
     * 赞数量
     */
    private Integer zanNum;
    /**
     * 踩数量
     */
    private Integer caiNum;
    /**
     * 观点（1：正方 2反方）
     */
    private String viewPoint;
    /**
     * 评论内容
     */
    private String commContent;
    /**
     * 是否最强声
     */
    private Boolean isBest;
    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 是否可删除，非数据库字段
     */
    private String isDel;
    /**
     * 关联话题名称，非数据库字段
     */
    private String topicName;

    @Id
    @Column(name = "COMM_ID")
    public Long getCommId() {
        return commId;
    }

    public void setCommId(Long commId) {
        this.commId = commId;
    }

    @Column(name = "TOPIC_ID")
    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    @Column(name = "CRITIC_TYPE")
    public String getCriticType() {
        return criticType;
    }

    public void setCriticType(String criticType) {
        this.criticType = criticType;
    }

    @Column(name = "NM_HEAD_PIC")
    public String getNmHeadPic() {
        return nmHeadPic;
    }

    public void setNmHeadPic(String nmHeadPic) {
        this.nmHeadPic = nmHeadPic;
    }

    @Column(name = "NM_NAME")
    public String getNmName() {
        return nmName;
    }

    public void setNmName(String nmName) {
        this.nmName = nmName;
    }

    @Column(name = "PERSON_ID")
    public Long getPersonId() {
        return personId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    @Column(name = "ZAN_NUM")
    public Integer getZanNum() {
        return zanNum;
    }

    public void setZanNum(Integer zanNum) {
        this.zanNum = zanNum;
    }

    @Column(name = "CAI_NUM")
    public Integer getCaiNum() {
        return caiNum;
    }

    public void setCaiNum(Integer caiNum) {
        this.caiNum = caiNum;
    }

    @Column(name = "VIEW_POINT")
    public String getViewPoint() {
        return viewPoint;
    }

    public void setViewPoint(String viewPoint) {
        this.viewPoint = viewPoint;
    }

    @Column(name = "COMM_CONTENT")
    public String getCommContent() {
        return commContent;
    }

    public void setCommContent(String commContent) {
        this.commContent = commContent;
    }

    @Column(name = "IS_BEST")
    public Boolean getIsBest() {
        return isBest;
    }

    public void setIsBest(Boolean isBest) {
        this.isBest = isBest;
    }

    @Column(name = "CREATE_TIME")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public static final class TypeConstants {
        /**
         * oa用户
         */
        public static final String TYPE_SOA = "1";
        /**
         * 微信用户
         */
        public static final String TYPE_WX = "2";
        /**
         * 匿名
         */
        public static final String TYPE_NM = "3";

        private TypeConstants() {
        }
    }
}
